﻿Public Class InOutForm
    Public Sub Set支出收入数据(ByVal dt支出 As DataTable, ByVal dt收入 As DataTable)
        Me.DataGridView6.DataSource = dt收入
        Me.DataGridView7.DataSource = dt支出
        If dt支出 Is Nothing OrElse dt支出.Rows.Count = 0 Then
            Me.TabControl2.SelectedIndex = 0
        ElseIf dt收入 Is Nothing OrElse dt收入.Rows.Count = 0 Then
            Me.TabControl2.SelectedIndex = 1
        End If

    End Sub
End Class
